using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml;

namespace mdv.wssSchemaExplorer.WSS
{
    public class wssFieldRefs
    {
        #region ctors
        public wssFieldRefs() { }
        public wssFieldRefs(XmlNode node)
        {
            if (node.HasChildNodes)
            {
                _fieldRefs = new List<wssFieldRef>();
                foreach (XmlNode xn in node)
                {
                    if (xn.Name == "FieldRef")
                    {
                        wssFieldRef fr = new wssFieldRef(xn);
                        _fieldRefs.Add(fr);
                    }
                }
            }
        }
        #endregion
        #region Non-Designer Properties
        private List<wssFieldRef> _fieldRefs;
        [Browsable(false)]
        public List<wssFieldRef> FieldRefs
        {
            get { return _fieldRefs; }
        }
        #endregion
        public override string ToString()
        {
            return "FieldRefs";
        }
    }
}
